<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>前台管理--建议中心管理</title>
<link href="${ctx }/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="${ctx}/js/jquery.js"></script>
<script language="JavaScript" src="${ctx}/js/filter.js"></script>
<script language="JavaScript" src="${ctx}/js/json2.js"></script>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
</head>
<body>

<div class="bg">
		  <div class="bg_inside">
		<div class="head">
			<c:import url="/pages/safeai/jsp/shop/header.jsp"></c:import>
		</div>


<div class="middle">
  <div class="description" style="padding:0px 0px 0px 5px">
    <div class="qa_status"><img src="${ctx}/images/title_letter_icon.jpg" /> 建议投诉</div>
	 <div class="qa_status">
	 <html:form action="/shop/frontMessageManage" method="post">
			<input type="hidden" name="method" value="search" />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
	<td>
    	<label>
        <div style="width:90px; height:22px; border-left:1px solid #7f9db9;border-top:1px solid #7f9db9;border-bottom:1px solid #7f9db9;border-right:1px solid #7f9db9; position:relative; font-size:12px;">
            <input id="in" type="text" style="width:86px; height:19px; border:0; background-image:url(${ctx}/images/niuniu.jpg); background-repeat:no-repeat; background-position:right;" value="选择" onclick="var s=document.getElementById('menu');s.style.display=s.style.display=='none'?'':'none';" />
            <div id="menu" style="width:90px;position:absolute; background-color:#ffffff;border-left:1px solid #000000;border-right:1px solid #000000; border-bottom:1px solid #000000;top:22px;left:-1px;display:none;">
                <div style="width:90px; cursor:pointer;border-bottom:1px solid #ffffff;" onclick="document.getElementById('in').value=this.innerHTML;this.parentNode.style.display='none';document.getElementById('selected').value=2">选择</div>
              <div style="width:90px; cursor:pointer;border-bottom:1px solid #ffffff;" onclick="document.getElementById('in').value=this.innerHTML;this.parentNode.style.display='none';document.getElementById('selected').value=0">按昵称查询</div>
                <div style="width:90px;cursor:pointer;border-bottom:1px solid #000000;" onclick="document.getElementById('in').value=this.innerHTML;this.parentNode.style.display='none';document.getElementById('selected').value=1">按标题查询</div>
</div>     
</div>
</label>
</td>
<td>
&nbsp;<label>
<input type="hidden" id="selected" name="searchType" value="2"/>
	   <input type="text" name="searchContent" 
	   <%-- /onFocus="this.value=='输入关键字'?this.value='':false"  
	   <c:choose>
             <c:when test="${searchContent eq null}">
                 value="输入关键字"
             </c:when>
             <c:otherwise>
                value="${searchContent}"
             </c:otherwise>
         </c:choose>
          --%>
	     value="${searchContent}" /style="font-size:9pt;color:#777777;width:150px;;padding-left:5px">
	   </label>
	   <label>
	   <input type="submit" name="Submit" value="查询"/ style="font-size:9pt;padding-top:2px">
	   </label>
</td>
</tr>
</table>
	 </div>
	 
		 
			<logic:present name="MessageRange">
					<logic:iterate id="message" name="MessageRange" property="records">
    <div class="qa_all" style="width:930px">
      <div class="qa_name" style="width:930px"><span style="float:left">标题：${message.title} </span><span style="float:right;">发表时间：：${message.publishDate}</span><span style="float:right;padding-right:10px">会员昵称：${message.nicky}</span></div>
      <div class="qa_cont" style="width:930px">
        <ul>
          <li  style="width:80px;float:left">　建议投诉：</li>
          <li style="width:850px;float:left">${message.content}</li>
        </ul>
        <ul  >
          <li style="color:#888888;width:80px;float:left">　客服回复：</li>
          <li style="color:#888888;width:850px;float:left">${message.reply}</li>
        </ul>
      </div>
    </div>
    </logic:iterate>
	</logic:present>
	<logic:notEmpty name="MessageRange"  property="records">
        <div class="qa_page" style="width:950px" ><%@ include file="/pages/safeai/jsp/common/page.jsp"%></div>
    </logic:notEmpty>
    </html:form>
     
     <html:form action="/shop/frontMessageManage" method="post">
			<input type="hidden" name="method" value="insert" />

    <div class="qa_info " style="width:930px"> 在下面输入您的反馈主题  <span class="font_orange">*</span><br /><label>
      <input type="text" name="message.title" id="title" maxlength="127"/ style="border:1px solid #ddd;font-size:9pt;color:#777777;width:300px">
      </label>
      <br />添加反馈内容 <span class="font_orange"> *</span><br />
        <label>
        <textarea name="message.content" id="content"/></textarea>
        </label><br />客户反馈是锐意提供给网友针对锐意的产品和服务进行评论的地方，这里的留言锐意不负责全部答复。
      <br />
      <a href="#" onclick="check()"  class="inquiry_manu">提交</a></div>
	  
  </div>
</div>
  </html:form>
<div class="bottom">
	<%@ include file="/pages/safeai/jsp/shop/bottom.jsp"%>	
	<div class="clearAll"></div>
</div>

</body>
</html>
<script language="javascript"> 
	function check(){
var form = document.getElementsByTagName('form')[2];
 
		   var title = document.getElementById("title").value;
		  if( title==""||title==null){
		  alert("请输入反馈主题");
		  return false;
		  }
		  if(document.getElementById("content").value ==""||document.getElementById("content").value==null){
		  alert("请输入反馈内容");
		  return false;
		  }
	      form.submit();
}
function gotoPage(pageOffset, pageSize) { 
				var form1 = document.getElementsByTagName("form")[1];
				form1.elements["pager.offset"].value = pageOffset;
				form1.elements["pageSize"].value = pageSize;
				form1.submit();
			}


 </script>